<!DOCTYPE html>
<#assign ctx=Session.basePath>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>关注列表1</title>
    <script>
        var shipid = '<#if shipid??>${shipid}<#else></#if>';
        var company =  '<#if company??>${company}<#else></#if>';
    </script>
    <link href="${ctx}/easyui/themes/bootstrap/easyui.css" rel="stylesheet" />
    <link href="${ctx}/easyui/themes/icon.css" rel="stylesheet" />
    <link href="${ctx}/inspiniain/font-awesome/css/font-awesome.css" rel="stylesheet">
    <script src="${ctx}/js/jquery-1.12.2.min.js"></script>
    <script src="${ctx}/lib/jquery.form.js"></script>
    <script src="${ctx}/easyui/jquery.easyui.min.js"></script>
    <script src="${ctx}/easyui/locale/easyui-lang-zh_CN.js"></script>
    <script src="${ctx}/pagination/js/layer/layer.js"></script>

    <script type="text/javascript">
        function loadAll(){
            var pager = $('#dg').datagrid({
                fitColumns:true,
                fit: true,
                loadFilter: function(data){
                    if(data != null && data.rows != null){
                        for(var i = 0; i < data.rows.length; i++){
                            var record = data.rows[i];
                            var shipname;
                            var mmsi;
                            if(record.shipname!=null){
                                shipname = record.shipname;
                            }
                            record.shipname = shipname;
                            if(record.mmsi!=null){
                                mmsi = record.mmsi;
                            }
                            record.mmsi=mmsi;
                        }
                    }
                    return data;
                }
            });
        }
        $(function () {
            loadAll();
        })
    </script>
<body>
<table id="dg", class="easyui-datagrid"
       data-options="rownumbers:true,singleSelect:true,pagination:true,url:'${ctx}/manage/ship/user/selectFollow?sfid=${sfid}',method:'post',toolbar:'#tb'">
    <thead>
    <tr>
    <#--<th data-options="field:'loginName',width:80">账号</th>-->
        <th data-options="field:'shipname',width:200">船名</th>
        <th data-options="field:'mmsi',width:60,align:'center'">MMSI</th>
        <th data-options="field:'position',width:60,align:'center'">定位</th>
    </tr>
    </thead>
</table>
</body>
</head>
</html>